#ifndef RENDERTHREADBASE_H
#define RENDERTHREADBASE_H
#include <QThread>

// 线程基类
class RenderThreadBase : public QThread
{
    Q_OBJECT
public:
    RenderThreadBase(QObject *parent = 0);
public:
    void start();
    void pause(bool is_pause=true);
    void exit();
    virtual void render();
protected:
    bool isRun=true;
    bool isPause = false;
    void run();
};

#endif // RENDERTHREADBASE_H
